"""
Perl rules
"""

module(
    name = "rules_perl",
    version = "0.2.0",
)

bazel_dep(name = "platforms", version = "0.0.6")
bazel_dep(name = "bazel_skylib", version = "1.4.2")
bazel_dep(name = "rules_cc", version = "0.0.8")

repos = use_extension("@rules_perl//perl:extensions.bzl", "perl_repositories")
use_repo(
    repos,
    "perl_darwin_amd64",
    "perl_darwin_arm64",
    "perl_linux_amd64",
    "perl_linux_arm64",
    "perl_windows_x86_64",
)

register_toolchains(
    "@rules_perl//:perl_darwin_arm64_toolchain",
    "@rules_perl//:perl_darwin_amd64_toolchain",
    "@rules_perl//:perl_linux_amd64_toolchain",
    "@rules_perl//:perl_linux_arm64_toolchain",
    "@rules_perl//:perl_windows_x86_64_toolchain",
)
